package cn.edu.ren.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.*;

/**
 * @PackageName: cn.edu.ren.pojo
 * @ClassName: Student
 * @Description:
 * @author: RZS
 * @date: 2021/5/20  9:31
 */
@Entity(name = "student") //声明一个实体，用的是Java规范下的注解
@Data
@NoArgsConstructor
@AllArgsConstructor
@Slf4j
public class Student {
    @Id
    // 字段自动生成
    @GeneratedValue(strategy= GenerationType.AUTO)
    private Long id;
    private int age;
    private String name;
}
